<?php
/*
# $Id$
#
# Usage:
# /path/to/php -c /path/to/php.ini build.php
*/
require_once('BuanSourceFolder.php');
require_once('BuanSourceFile.php');

$dirSource = dirname(dirname(dirname(__FILE__))).'/buan-core';
$dirTarget = dirname(__FILE__).'/build';
$dirTemplate = dirname(__FILE__).'/templates/default';

$root = new BuanSourceFolder($dirSource);
$root->setTarget($dirTarget);
$root->setTemplate($dirTemplate);
echo "Parsing source files, please wait ...\n";
$root->parse();
?>